﻿<dx:DXWindow x:Class="QuanLyKho.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:QuanLyKho"
		xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
		xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
		xmlns:dxbh="http://schemas.devexpress.com/winfx/2008/xaml/bars/internal"
		xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
		xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
		xmlns:dxd="http://schemas.devexpress.com/winfx/2008/xaml/docking"
		xmlns:dxnb="http://schemas.devexpress.com/winfx/2008/xaml/navbar"
		xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
		xmlns:collections="clr-namespace:System.Collections;assembly=mscorlib"
        Title="Phần Mềm Quản Lý Kho" Height="700" Width="1100"
        dx:ThemeManager.ThemeName="Office2007Blue" WindowState="Maximized"
        Loaded="DXWindow_Loaded"
    >
    <dxb:BarManager dxbh:BlendHelperForBarsAndRibbon.IsDesignControl="true">
        <dxb:BarManager.Items>
            <!--Danh muc -->
            <dxb:BarButtonItem x:Name="btnDmThuoc" Content="Thuốc" Glyph="Images/Icons/database.ico" LargeGlyph="Images/Icons/database.ico" ItemClick="BarManager_ItemClick"/>
            <dxb:BarButtonItem x:Name="btnDmDonViTinh" Content="Đơn Vị Tính" Glyph="Images/Icons/database.ico" LargeGlyph="Images/Icons/database.ico" ItemClick="BarManager_ItemClick"/>
            <dxb:BarButtonItem x:Name="btnDmHamLuong" Content="Hàm Lượng" Glyph="Images/Icons/database.ico" LargeGlyph="Images/Icons/database.ico" ItemClick="BarManager_ItemClick"/>
            <dxb:BarButtonItem x:Name="btnDmNhaPhanPhoi" Content="Nhà Phân Phối" Glyph="Images/Icons/database.ico" LargeGlyph="Images/Icons/database.ico" ItemClick="BarManager_ItemClick"/>
            <dxb:BarButtonItem x:Name="btnDmQuyCach" Content="Quy Cách" Glyph="Images/Icons/database.ico" LargeGlyph="Images/Icons/database.ico" ItemClick="BarManager_ItemClick"/>
            
            <!--Tiền nợ-->
            <dxb:BarButtonItem x:Name="btnTraNo" Content="Quản Lý Tiền Nợ" Glyph="Images/Icons/Group.png" LargeGlyph="Images/Icons/Group.png" ItemClick="BarManager_ItemClick"/>
            
            <!---->
            <dxb:BarButtonItem x:Name="btnNhapKho" Content="Nhập Kho " Glyph="Images/Icons/safety_box_v2.png" LargeGlyph="Images/Icons/safety_box_v2.png" ItemClick="BarManager_ItemClick" />
            <dxb:BarButtonItem x:Name="btnXuatKho" Content="Xuất Kho " Glyph="Images/Icons/6_mac.png" LargeGlyph="Images/Icons/6_mac.png" ItemClick="BarManager_ItemClick"/>
            <dxb:BarButtonItem x:Name="btnDSNhapKho" Content="DS Nhập Kho " Glyph="Images/Icons/todo_list_add.png" LargeGlyph="Images/Icons/todo_list_add.png" ItemClick="BarManager_ItemClick"/>
            <dxb:BarButtonItem x:Name="btnDSXuatKho" Content="DS Xuất Kho " Glyph="Images/Icons/list_go.png" LargeGlyph="Images/Icons/list_go.png" ItemClick="BarManager_ItemClick"/>
            <dxb:BarButtonItem x:Name="btnThoat" Content="Thoát" Glyph="Images/Icons/exit.png" LargeGlyph="Images/Icons/exit.png" ItemClick="BarManager_ItemClick"/>
            <dxb:BarButtonItem x:Name="btnSaoLuuPhucHoiDuLieu" Content="Sao Lưu Phục Hồi Dữ Liệu" Glyph="Images/Icons/1_drive_restore.png" LargeGlyph="Images/Icons/1_drive_restore.png" ItemClick="BarManager_ItemClick"/>
            
            <!--Thống kê-->
            <dxb:BarButtonItem x:Name="btnThongKeTheKho" Content="Thống Kê Thẻ Kho" Glyph="Images/Icons/report.png" LargeGlyph="Images/Icons/report.png" ItemClick="BarManager_ItemClick"/>
            <dxb:BarButtonItem x:Name="btnThongKeTonKho" Content="Thống Kê Tồn Kho" Glyph="Images/Icons/report.png" LargeGlyph="Images/Icons/report.png" ItemClick="BarManager_ItemClick"/>
            <dxb:BarButtonItem x:Name="btnThongKeTienNo" Content="Thống Kê Tiền Nợ" Glyph="Images/Icons/report.png" LargeGlyph="Images/Icons/report.png" ItemClick="BarManager_ItemClick"/>
        </dxb:BarManager.Items>
        <DockPanel>
            <dxr:RibbonControl x:Name="ribbonControl1" RibbonStyle="Office2010"
                               dxbh:BlendHelperForBarsAndRibbon.IsDesignControl="true" DockPanel.Dock="Top" ToolbarShowMode="Hide" 
                               ToolbarShowCustomizationButton="False" AllowMinimizeRibbon="True" AllowDrop="False"
                               ApplicationButtonSmallIcon="/QuanLyKho;component/Images/Icons/home.png" Background="Transparent">
                <dxr:RibbonControl.ApplicationMenu>
                    <dxr:ApplicationMenuInfo RightPaneWidth="280" ShowRightPane="True">
                        <dxr:ApplicationMenuInfo.RightPane>
                            <Button Content="Right Pane" />
                        </dxr:ApplicationMenuInfo.RightPane>
                        <dxr:ApplicationMenuInfo.BottomPane>
                            <StackPanel Orientation="Horizontal">
                                <Button Content="OK button" />
                            </StackPanel>
                        </dxr:ApplicationMenuInfo.BottomPane>
                    </dxr:ApplicationMenuInfo>
                </dxr:RibbonControl.ApplicationMenu>
                <dxr:RibbonDefaultPageCategory>
                    <dxr:RibbonPage Name="tabKhoHang" Caption="Kho Hàng">
                        <dxr:RibbonPageGroup Caption="Quản Lý Kho">
                            <dxr:RibbonPageGroup.ItemLinks>
                                <dxb:BarButtonItemLink BarItemName="btnNhapKho"/>
                                <dxb:BarButtonItemLink BarItemName="btnXuatKho"/>
                                <dxb:BarButtonItemLink BarItemName="btnDSNhapKho"/>
                                <dxb:BarButtonItemLink BarItemName="btnDSXuatKho"/>
                                <dxb:BarButtonItemLink BarItemName="btnTraNo"/>
                                <dxb:BarItemLinkSeparator />
                                <dxb:BarButtonItemLink BarItemName="btnThongKeTheKho"/>
                                <dxb:BarButtonItemLink BarItemName="btnThongKeTonKho"/>
                                <dxb:BarButtonItemLink BarItemName="btnThongKeTienNo"/>
            </dxr:RibbonPageGroup.ItemLinks>
                        </dxr:RibbonPageGroup>
                    </dxr:RibbonPage>
                    <dxr:RibbonPage Name="tabHeThong" Caption="Hệ Thống">
                        <dxr:RibbonPageGroup Caption="Hệ thống">
                            <dxr:RibbonPageGroup.ItemLinks>
                                <dxb:BarButtonItemLink BarItemName="btnThoat"/>
                                <!--<dxb:BarItemLinkSeparator />-->
                            </dxr:RibbonPageGroup.ItemLinks>
                        </dxr:RibbonPageGroup>
                        <dxr:RibbonPageGroup Caption="Dữ liệu">
                            <dxr:RibbonPageGroup.ItemLinks>
                                <dxb:BarButtonItemLink BarItemName="btnSaoLuuPhucHoiDuLieu" />
                            </dxr:RibbonPageGroup.ItemLinks>
                        </dxr:RibbonPageGroup>
                    </dxr:RibbonPage>
                    <dxr:RibbonPage Name="tabDanhMuc" Caption="Danh Mục">
                        <dxr:RibbonPageGroup Caption="Quản Lý Danh Mục">
                            <dxr:RibbonPageGroup.ItemLinks>
                                <dxb:BarButtonItemLink BarItemName="btnDmThuoc" />
                                <dxb:BarButtonItemLink BarItemName="btnDmDonViTinh" />
                                <dxb:BarButtonItemLink BarItemName="btnDmHamLuong" />
                                <dxb:BarButtonItemLink BarItemName="btnDmNhaPhanPhoi" />
                                <dxb:BarButtonItemLink BarItemName="btnDmQuyCach" />
                    </dxr:RibbonPageGroup.ItemLinks>
                        </dxr:RibbonPageGroup>
                    </dxr:RibbonPage>
                </dxr:RibbonDefaultPageCategory>
                <dxr:RibbonControl.ToolbarItemLinks>
                    <dxb:BarItemLinkSeparator />
                </dxr:RibbonControl.ToolbarItemLinks>
            </dxr:RibbonControl>
            <dxr:RibbonStatusBarControl dxbh:BlendHelperForBarsAndRibbon.IsDesignControl="true" DockPanel.Dock="Bottom"></dxr:RibbonStatusBarControl>
            <dxd:DockLayoutManager Name="dockLayoutManagerMain">
                <dxd:LayoutGroup>
                    <dxd:LayoutGroup Orientation="Vertical"  Width="3*">
                        <dxd:DocumentGroup Name="documentGroupMain" Height="3*" SelectedTabIndex="0">
                            <dxd:DocumentPanel Name="MainPanel" Caption="Document1" Height="3*">
                            </dxd:DocumentPanel>
                        </dxd:DocumentGroup>
                    </dxd:LayoutGroup>
                </dxd:LayoutGroup>
                <dxd:DockLayoutManager.AutoHideGroups>
                    <dxd:AutoHideGroup MinSize="250,0">
                        <dxd:LayoutPanel Caption="Danh Sách">
                            <dxnb:NavBarControl Name="navBarControl">
                                <dxnb:NavBarControl.Groups>
                                    <dxnb:NavBarGroup Header="Nhập kho" DisplaySource="Content" ImageSource="Images/Icons/safety_box_v2.png">
                                        <dxnb:NavBarGroup.Content>
                                            <ListBox Name="lbNhapKho" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" 
                                                     FontSize="12" FontWeight="Normal" SelectionChanged="lbNhapKho_SelectionChanged">
                                                <ListBox.ItemTemplate>
                                                    <DataTemplate>
                                                        <StackPanel Orientation="Horizontal">
                                                            <Image Source="Images/Icons/safety_box_v2.png" Height="20" Width="20"/>
                                                            <TextBlock Text="{Binding IdPhieuNhap}" TextDecorations="Underline" FontSize="15" Foreground="Black" Margin="4,0,0,0"/>
                                                            <TextBlock Text="{Binding NgayNhapDDMMYYYY}" FontSize="15" Foreground="Black" Margin="8,0,0,0"/>
                                                            <TextBlock Text="{Binding Dm_NhaPhanPhoi.TenNhaPhanPhoi}" FontSize="15" Foreground="Black" Margin="4,0,0,0"/>
                                                        </StackPanel>
                                                    </DataTemplate>
                                                </ListBox.ItemTemplate>
                                            </ListBox>
                                        </dxnb:NavBarGroup.Content>
                                    </dxnb:NavBarGroup>
                                    <dxnb:NavBarGroup Header="Xuất kho" DisplaySource="Content" ImageSource="Images/Icons/6_mac.png">
                                        <dxnb:NavBarGroup.Content>
                                            <ListBox Name="lbXuatKho" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" 
                                                     FontSize="12" FontWeight="Normal" SelectionChanged="lbXuatKho_SelectionChanged">
                                                <ListBox.ItemTemplate>
                                                    <DataTemplate>
                                                        <StackPanel Orientation="Horizontal">
                                                            <Image Source="Images/Icons/6_mac.png" Height="20" Width="20"/>
                                                            <TextBlock Text="{Binding IdPhieuXuat}" TextDecorations="Underline" FontSize="15" Foreground="Black" Margin="4,0,0,0"/>
                                                            <TextBlock Text="{Binding NgayXuatDDMMYYYY}" FontSize="15" Foreground="Black" Margin="8,0,0,0"/>
                                                        </StackPanel>
                                                    </DataTemplate>
                                                </ListBox.ItemTemplate>
                                            </ListBox>
                                        </dxnb:NavBarGroup.Content>
                                    </dxnb:NavBarGroup>
                                </dxnb:NavBarControl.Groups>
                                <dxnb:NavBarControl.View>
                                    <dxnb:ExplorerBarView />
                                </dxnb:NavBarControl.View>
                            </dxnb:NavBarControl>
                        </dxd:LayoutPanel>
                    </dxd:AutoHideGroup>
                </dxd:DockLayoutManager.AutoHideGroups>
            </dxd:DockLayoutManager>
        </DockPanel>
    </dxb:BarManager>
</dx:DXWindow>